add hamming distance as our metric to compare the distance in GIST part