Fix for issue #48

Hamming distance isn't defined for strings of unequal length.