[PATCH v2 06/27 5.10.y] minmax: Introduce {min,max}_array()