Add cxx maximum value contiguous subsequenc.