add Hamming distance based overlap detection