Added palindrome finding function.