add dynamic programming LCS