add hamming approx NN routine