Added kdtree assignment.