DP - O(nlgn) Longest Increasing Subsequence problem