fixed longest increasing subsequence