add levenshtein encoder

Gallagher encoder doesn't work, levenshtein encoder works well (but with
some differences from wiki)