implemnted balancing of the AVL for the add methods