added MaxDoubleSliceSum