Computing Levenshtein distance.