parallelized compute_tree script