renamed MaxSliceSum