Levenshtein coding