add a hamming distance calc for simhash