minMax function

summaryFunction for minimum and maximum