palindromes

first one examines whether or not a string contains an even or odd # of
characters and look at only the halves of the string. The second one
just cycles through all the elements twice from both directions.