Bug fix for Hamming Distance algorithm, allow costs to be set in Levenshtein Comparison