Add K-d tree.