Dynamic Programming - LIS - LCS