hamming distance updated

final update