Longest Palindrome-- version1