added methods that will be expanding tomorrow.

going to use AVL algorithm to make self-balancing tree