sgd mini-batch, sum up points