Implemented AVL balancing mechanism in removeArr, fixed some bugs in rotation functions