check linked list palindrome