added the algorithm that finds the longest palindrome substr in a string