update create_tree so that R's random seed is amenable to multiprocessing