title: Algorithm for read matrixes
body: <p>An algorithm that need process a matrix <code>n x m</code> that is scalable.
  E.g. I have a time series of 3 seconds containing the values: 2,1,4.
  I need to decompose it to take a <code>3 x 4</code> matrix, <em>where 3 is the number of elements of time series and 4 the maximum value</em>. The resulting matrix that would look like this:</p>
  
  <pre><code>1   1   1
  1   0   1
  0   0   1
  0   0   1
  </code></pre>
  
  <p>Is this a bad solution or is it only considered a data entry problem?
  The question is, </p>
  
  <p><strong>do I need to distribute information from each row of the matrix for various elements without losing the values?</strong></p>