Add palindrome detector

A solution for the palindrome detection exercise
(http://rosettacode.org/wiki/Palindrome_detection). I think this makes
a nice demo of using iterators on strings.