avl balancing implemented and checked