add longest increasing subsequence