Generic AVL tree in C.