private static void saveMeans() throws IOException {
        try (FileWriter w = new FileWriter("means.csv")) {
            for (ThreadForParametersSet thread : threads) {
                w.append(thread.fileName).append(";");
            }
            w.append("\n");
            for (int i = 0; i < MAX_ITERATIONS; i++) {
                for (ThreadForParametersSet thread : threads) {
                    w.append(Long.toString(thread.meansOfMeans[i])).append(";");
                }
                w.append("\n");
            }
            w.flush();
        }
        try (FileWriter w = new FileWriter("summary.csv")) {
            w.append("#;");
            for (ThreadForParametersSet thread : threads) {
                w.append(thread.fileName).append(";");
            }
            w.append("\n").append("meanTime");
            for (ThreadForParametersSet thread : threads) {
                w.append(";" + thread.meanTime);
            }
            w.append("\n").append("meansOfBests");
            for (ThreadForParametersSet thread : threads) {
                w.append(";" + thread.meansOfBests);
            }
            w.append("\n").append("meansOfWorst");
            for (ThreadForParametersSet thread : threads) {
                w.append(";" + thread.meansOfWorst);
            }
            w.append("\n").append("best");
            for (ThreadForParametersSet thread : threads) {
                w.append(";\"" + thread.best + "\"");
            }
            w.append("\n").append("worst");
            for (ThreadForParametersSet thread : threads) {
                w.append(";\"" + thread.worst + "\"");
            }
            w.flush();
        }
    }