Added the palindrome function from today.

Changed it to work with strings instead of lists, which has the added
benefit of making it possible to use the normal memoize function.