Adding Longest Increasing Subsequence