LongestIncreasingSubsequence fixed