Added backpropogation to the tree