Pulling buildTree into its own function. Enhancements to buildtree, nodes now contain: meaning vector, #leafs below, label, predicted zi and zj vectors