DP: Longest palindromic subsequence