The KD-tree implementation .