implemented functions for constructing ropes
merged, removed include<intersection.h> from KDTree.h