longest decreasing subsequence and longest bitonic sequence added