Code for AVL Tree implementation