title: How to efficiently find the bounding box of a collection of points?
body: <p>I have several points stored in an array. I need to find bounds of that points ie. the rectangle which bounds all the points. I know how to solve this in plain Python. </p>
  
  <p>I would like to know is there a better way than the naive max, min over the array or built-in method to solve the problem.</p>
  
  <pre><code>points = [[1, 3], [2, 4], [4, 1], [3, 3], [1, 6]]
  b = bounds(points) # the function I am looking for
  # now b = [[1, 1], [4, 6]]
  </code></pre>