More levenshtein improvements.

Algorithm is still not optimal.