Added KDTree in preparation for optimal nearest neighbor searching in ScatterGraph.