modified the radius of spheres to the half of the min distance of any two points
change the radius of sphere. If the min distance is 0, use default radius instead