add two algorithms for palindrome operations.