Add min/max aggregation to map/reduce framework.

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