hmm... how do I get the first n bits of an integer?