use another way of bottom-up approaching to solve Palindrome Partition II,time complexity is O(N^2)