Revert "longest increasing subsequence"

This reverts commit d293078aa9dabaa3a0023eae7decdf4eff80731b.