Levenshtein_distance method