Written Levenshtein distance routine.