Grep with small hamming distance