title: Best way to remove duplicates from multidimensional array?
body: <p>Let's say I have an array:</p>
  
  <pre><code>double[][] points = {{0.0, 0.0}, {1.0, 1.0}, {1.0, 1.0},  {2.0, 2.0}};
  </code></pre>
  
  <p>I want to create a new array without the duplicate entry <code>{1.0, 1.0}</code> - what would be the best way to do so?</p>
  
  <p>Additional info: </p>
  
  <ul>
  <li><p>The array is sorted, but only by the first component, so it's possible to have</p>
  
  <pre><code>{1.0, 2.0}, {1.0, 1.0}, {1.0, 2.0}
  </code></pre>
  
  <p>That's how I get the data, I cannot change the initial sort mechanism.</p></li>
  <li><p>Two dimensions are the current limit, but the array can have thousands of points.</p></li>
  </ul>