I have some code that clusters points together based on the distance between them. At the moment, if the number of points in a cluster exceeds four, the loop repeats with the d