Two algorithms for finding the length of the longest palindrome in a string.