title: Searching through a matrix with Ruby
body: <p>I have a matrix like this:</p>
  
  <pre><code>0 1 0 0 1 0
  1 0 1 0 1 0
  0 1 0 1 0 0
  0 0 1 0 1 1
  1 1 0 1 0 0
  0 0 0 1 0 0
  </code></pre>
  
  <p>How can I define a matrix in Ruby, and then search through it?</p>
  
  <p>I would like to write a program which searches through all rows and returns rows with the highest sum of "1".</p>