add hamming-distance
add tests for hamming-distance