Finshed balanceTree method. Still requires testing.