Correct algorithm to compute Longest Palindrome Subsequence of a string.