Fix mistake of test case.
Implement LCS by dynamic programming.