max increasing subseq

contiguous O(n^2) using DP