AVL source code