LongestIncreasingSubsequence added (not ideal though)