// Test Indexx
System.out.println("Testing Indexx");
Ran myran = new Ran(17);
for (i=0;i<N;i++) x[i]=myran.doub();
Indexx idx =new Indexx(x); // Create the index
double[] xx=buildVector(x); // Copy of x
idx.sort(xx); // Test sort on x itself
for (i=0;i<N-1;i++) localflag = localflag || (xx[i] > xx[i+1]);
globalflag = globalflag || localflag;