Hamming search