implement high dimension kdtree by using tuple