Finished the code for running cvtrees