AVL Tree algorithm for int keys