palindromes. runs reasonably fast for n^2, but should do better.