Balanced brackets

Solution for http://rosettacode.org/wiki/Balanced_brackets
Update to palindrome

Using more abstractions because they are there