update PalindromePartitionII DP matrix