http://en.wikipedia.org/wiki/Hamming_weight