title: Find largest rectangle containing only zeros in an N×N binary matrix
body: <p>Given an NxN binary matrix (containing only 0's or 1's), how can we go about finding largest rectangle containing all 0's?</p>
  
  <p>Example:</p>
  
  <pre><code>      I
      0 0 0 0 1 0
      0 0 1 0 0 1
  II-&gt;0 0 0 0 0 0
      1 0 0 0 0 0
      0 0 0 0 0 1 &lt;--IV
      0 0 1 0 0 0
              IV 
  </code></pre>
  
  <p>For the above example, it is a 6&times;6 binary matrix. the return value in this case will be Cell 1:(2, 1) and Cell 2:(4, 4). The resulting sub-matrix can be square or rectangular.  The return value can also be the size of the largest sub-matrix of all 0's, in this example 3 &times; 4.</p>