Fixd Longest Increasing Subsequence with Dynamic Programming