fix Levenshtein edit distance implementation
Merge pull request #660 from ghorn/develop

fix Levenshtein edit distance implementation