Longest increasing subsequence

working