hamming_distance is added