Added functions to find Hamming distance and cardinality/number of 1 bits in a byte.