AVL-tree implementation, in progress.