add longestPalindrome