batchReduce function

Reduce Operation for Batch Systems