maximum continuous partial sum