Balancing of the tree after deleting