add palindrome check to linkedliststack