@Test
    public void testTiming() {
        String[] filename = new String[]{"teams30.txt", "teams36.txt",
            "teams42.txt", "teams48.txt", "teams54.txt", "teams60.txt"};
        int n = filename.length;
        double[] t = new double[n];
        double[] sz = new double[]{30, 36, 42, 48, 54, 60};
        String path = "src\\tests\\baseball\\";
        for (int i = 0; i < n; i++) {
            BaseballElimination division = new BaseballElimination(
                    path + filename[i]);
            Stopwatch sw = new Stopwatch();
            for (int j = 0; j < 10; j++) {
                for (String team : division.teams()) {
                    division.isEliminated(team);
                    division.certificateOfElimination(team);
                }
            }
            t[i] = sw.elapsedTime();
            System.out.println(division.numberOfTeams() + ": " + t[i]);
        }
        PolynomialRegression regression = new PolynomialRegression(sz, t, 1);
        int order = 1;
        while (Math.abs(regression.R2() - 1) > 0.01) {
            regression = new PolynomialRegression(sz, t, ++order);
        }
        System.out.println(regression);
        System.out.println(regression.beta(order) + " * N^" + order);
    }