changed repeatXor to operate on raw binary data
added more hamming distance functions