max double slice naive
double slice sum