Hamming distance
such that the Hamming distance formula_7.