public static void main(String[] args) {
        List<Double> numbers = new ArrayList<>();

        int size = 300;
        for (int i = 1; i <= size; i++) {
            numbers.add((double)i);
        }
        SquareTaskForkJoin taskForkJoin = new SquareTaskForkJoin(numbers);
        long before = System.nanoTime();

//        taskForkJoin.compute();
        new ForkJoinPool().execute(taskForkJoin);
        taskForkJoin.join();

        long after = System.nanoTime();
        System.out.println("fork join execution time of " + size + " elements is " + (after - before));

        System.out.println(taskForkJoin);
    }