Made parents global in makeTree.m and added some
code for parallelizing optimizeTree. But many
more changes need to be made, to make this work