Add Levenshtein distance function.