Creates and probes a k-d tree