Add test cases of recursive method.
Modify test case to compact.
Fix error of inversion of row and column.
Add function of print DP table.