Program to compare linked lists, and find if they are identical