[PATCH v2 02/19 5.15.y] minmax: Introduce {min,max}_array()