Is there an algorithm that given the set of points: p1(10,-4) p2(8,3) p3(6,-4) and p4(5,1) returns you the sequence to follow from the closest point to the furthest one chan