added a recursive code to match and find two linked lists