Get a working hamming distance