Maximum length bitonic sequence