Use Hamming distance for efficiency

Hamming distance is faster when strings are of same length (Hamming is a
special case of Levenshtein).
Merge remote-tracking branch 'origin/hamminglev'