public static void main(String[] args) {
		
		boolean doPrint = false;
		// Make sure they specified a File and Algorithm to use 
		if (args.length < 2) {
			usage();
			System.exit(1);
		}
		int idx = 0;
		if (args[idx].equals("-p"))
		{
			doPrint = true;
			idx = 1;
		}
		
		// get the filenames for those
		String document = args[idx+0];
		// Which sort Algorithm
		int sortAlg = Integer.parseInt(args[idx+1]);
		if (sortAlg < BUBBLE || sortAlg > HEAP) {
			System.err.println("Unknown Sort Algorithm" + sortAlg);
			usage();
			System.exit(1);
		}
		
		int numwords = NUMWORDS;
		int increment = INCREMENT;
		int steps = STEPS;
		int reps = NUM_REPS;
		
		if (args.length >= idx+3) {
			numwords = Integer.parseInt(args[idx+2]);
		}
		if (args.length >= idx+4) { 
			increment = Integer.parseInt(args[idx+3]);
		}
		if (args.length >= idx+5) {
			steps = Integer.parseInt(args[idx+4]);
		}
		if (args.length >= idx+6 ) {
			reps = Integer.parseInt(args[idx+5]);
		}
				
		// Once times for the MyLinkedList
		doLoops(sortAlg, document, numwords, increment, steps, reps,doPrint);
		
	}