added the kdtree implementation and rect2D