title: Finding minimum and maximum efficiently
body: <p>I have two integer parameters <code>a</code> and <code>b</code>. And two integer variables <code>max</code> and <code>min</code>.
  I want to assign to <code>max</code> the maximum of <code>a</code> and <code>b</code> and to <code>min</code> the minimum of the two.
  I need to do this operation millions of times and so I want to optimize it. I am currently doing the following:</p>
  
  <pre><code>min = a &lt; b ? a : b;
  max = a &gt; b ? a : b;
  </code></pre>
  
  <p>The problem with this is that it requires two if statements. I am wondering if there is a better way to do this.</p>