IsPalindrome

Added a palindrome method. Is O(n).