title: Finding nearest point in an efficient way
body: <p>I've got a point in 2d plane for example (x0,y0) and a set of n points (x1,y1)...(xn,yn) and I want to find nearest point to (x0,y0) in a way better than  trying all points. Any solutions?</p>
  
  <p>I should also say that my points are sorted in this way:</p>
  
  <pre><code>bool less(point a,point b){
    if(a.x!=b.x)
       return a.x&lt;b.x;
    else
       return a.y&lt;b.y;
   }
  </code></pre>