Approved by: krion@ PR: ports/88711 (related)
finding the minimum and maximum of an array with at most 3n/2 - 2 comparisons Approved by: co-mentor (vanilla)