title: Shortest distance between points algorithm
body: <p><em>Given a set of points on a plane, find the shortest line segment formed by any two of these points.</em></p>
  
  <p>How can I do that? The trivial way is obviously to calculate each distance, but I need another algorithm to compare.</p>