plchecker: port Levenshtein edit distance to current Rust