2-clustering-big. add maxDistance arg to Node.distanceTo