add min/max/prod/sum reductions for matrices