Parallelized the recursive tree construction.