public static void main(String[] args) throws IOException {
        Make make = new Make();
        BufferedWriter bw = new BufferedWriter(new FileWriter(new File("statsFH.dat"), true));
        //int count;

        for (int i = 100; i <= 10000; i += 100) {
            for (int j = 0; j < 100; j++) {
                //count = 0;
                ArrayList<Integer> list = make.list(i);
                int size = list.size();
                FibonacciHeap heap = new FibonacciHeap();
                int operation = 0;
                for (int k = 0; k < size; k++) {
                    //System.out.println("key: " + k + " value: " + list.get(k));
                    //count++;
                    heap.insert(k, list.get(k));
                    operation++;
                    bw.write(operation + " " + heap.getAccess() + "\n");
                    //System.out.println("Minimum: " + heap.getMinimum().getValue());
                }
                while (!heap.isEmpty()) {
                    //count++;
                    //System.out.println("Minimum: " + heap.getMinimum().getValue());
                    heap.extractMinimum();
                    operation++;
                    bw.write(operation + " " + heap.getAccess() + "\n");
                }
                // System.out.println(statsString);
                // System.out.println("COUNT = " + count);
            }
            System.out.println(i);
        }
        bw.close();
        /**
         * Sprawdzenie poprawnosci z http://www.cse.yorku.ca/~aaw/Jason/FibonacciHeapAnimation.html
         **/
        /*
        FibonacciHeap heap = new FibonacciHeap();
        heap.insert(0, 0);
        heap.insert(55, 55);
        heap.insert(32, 32);
        heap.insert(33, 33);
        heap.insert(2, 2);
        System.out.println("Minimum: " + heap.getMinimum().getValue());
        heap.extractMinimum();
        System.out.println("Minimum: " + heap.getMinimum().getValue());
        System.out.println("next: " + heap.getMinimum().child.left.child.getValue());
        heap.extractMinimum();
        System.out.println("Minimum: " + heap.getMinimum().getValue());
        System.out.println("next " + heap.getMinimum().right.getValue());
        heap.extractMinimum();
        System.out.println("Minimum: " + heap.getMinimum().getValue());
        System.out.println("next " + heap.getMinimum().child.getValue());
        */
        System.out.println("END");
    }