polish Levenshtein impl.