Largest increasing subsequence

not quite working