public static void main(String[] args)
  {
    if (args.length > 2)
    {
      SortingAlgorithm algorithm = getSortingAlgorithm(args[0].toLowerCase());

      if (algorithm != null)
      {
        try
        {
          int length = Integer.parseInt(args[1]),
              n      = Integer.parseInt(args[2]);

          TestResult[] results = SortingTest.tester.test(algorithm, length, n);
          for (TestResult result : results)
            System.out.println(result);
        }
        catch (NumberFormatException e)
        {
          System.err.println(e.getMessage());
          e.printStackTrace();
        }
      }
    }
    else
      printHelpText();
  }