Hi
I am implementing the Shamos algorithm to find the minimum distance of two points within a set of points. Here is the algorithm:

1. If n ≤ 3 find the closest points by brute force and stop.
...