min max without comparison