linked list palindrome problem solved