adds lcs iterative dynamic programming