Add min & max aggregation rules

It can be useful to aggregate by min or max.