map reduce w/min max