debugging kd tree
debugging kd tree