added the code for checking if a linked list is a palindrome or not