Longest Palindromic Substring Dynamic Programming