if (a >= b)
    max = a
    min = b
else
    max = b
    min = a
end
