Add min/max aggregation to map/reduce framework.

Adds a min/max aggregation to the map/reduce framework that computes both the minimum and maximum value in one pass.