added initial kdtree.