found a faster Levenshtein distance