added isPalindrome(n)