ADS II - Longest palindrome in linear time