Get last k bits of a uN

Another potential approach: x & !(uN::MAX.checked_shl(k).unwrap_or(0)).