Programs to calculate Levenshtein and linked list diverge points