levenshtein distance in scala