Fixed the indexing bug in Distance.Hamming

Iteration started at index 1, while it should start from index 0.