Counting bits set: Brian Kernighan's way
graphics.stanford.edu