// Test locate(int) method
int n0;
localflag=false;
for (i=0;i<M;i++) {
n0=myran.int32p() % N;
nb=tree2.locate(n0);
// System.out.printf(nb);
// System.out.printf(tree2.boxes[nb].lo.x[0] << " %f\n", tree2.boxes[nb].lo.x[1]);
// System.out.printf(tree2.boxes[nb].hi.x[0] << " %f\n", tree2.boxes[nb].hi.x[1]);
localflag = localflag || (kd2[n0].x[0] < tree2.boxes[nb].lo.x[0]);
localflag = localflag || (kd2[n0].x[0] > tree2.boxes[nb].hi.x[0]);