sub vector with max sum