DP: palindrome partitioning