Add palindrome detector and balanced brackets solutions

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.