I'm looking for a quick way to find the number of bits that are
different between two bitmasks of the same size. I'll be doing this a
lot, so speed is desirable.... some kind of indexing would be even
better. It seems like this problem must have been solved before....