Adds code to calculate hamming distance for 1.6
Calculates average hamming distances in 1.6