Hamming distance is undefined for strings of different lengths.

Fixes #13