various improvements to search for palindromes

unify search for even/odd palindromes
more friendly treatment of zero-length input string
track length of longest palindromes found so far
remove duplicates, sort results