fast avg, first optimization of min / max