Longest increasing subsequence.