title: Finding Closest Point to a Set of Points (in Lat/Long)
body: <p>I am given a random set of points (not told how many) with a latitude and longitude and need to sort them.</p>
  
  <p>I will then be given another random point (lat/long) and need to find the point closest to it (from the set above).</p>
  
  <p>When I implement a linear search (put the set in a list and then calculate all the distances), it takes approximately 7 times longer than permitted. </p>
  
  <p>So, I need a much more efficient sorting algorithm, but I am unsure how I could do this, especially since I'm given points that don't exist on a flat plane.</p>