public static ADNode makeADTree(Instances instances){
  ArrayList<Integer> nRecords=new ArrayList<Integer>(instances.numInstances());
  for (int iRecord=0; iRecord < instances.numInstances(); iRecord++) {
    nRecords.add(new Integer(iRecord));
  }
  return makeADTree(0,nRecords,instances);
}

public static ADNode makeADTree ( Instances instances ) { ArrayList < Integer > nRecords = new ArrayList < Integer > ( instances . numInstances ( ) ) ; for ( int iRecord = 0 ; iRecord < instances . numInstances ( ) ; iRecord ++ ) { nRecords . add ( new Integer ( iRecord ) ) ; } return makeADTree ( 0 , nRecords , instances ) ; }
create ad tree from set of instances
