Fixed problem with rebalancing

needed to rebalance all the way up the tree rather than just its grandparent node