incremental Min and Max implemented