Longest increasing subsequence implemented