Add longest increasing subsequence