added Hamming distance
resolved float comparison issue merge conflict