Update LongestIncreasingSubsequence