add alg of longest increasing subsequence