Generating palindromes