added the initial body of the code for matching two LinkedLists