Fast implementation of the edit distance (Levenshtein distance).
