private static double time(String alg, Comparable[] a)
	{
		double t = -1.0;
		String c = (alg.split("[.]"))[0];
		String m = (alg.split("[.]"))[1];

		Stopwatch timer;

		try
		{
			timer = new Stopwatch();
			Class.forName(c).getMethod(m, Comparable[].class)
					.invoke(null, (Object) a);
			t = timer.elapsedTime();
			assert SortHelper.isSorted(a);
		}
		catch (Exception e)
		{
			System.out.println(e);
			System.out.println(e.getCause());
			System.exit(1);
		}
		return t;
	}