apply the new reduction framework to maximum & minimum