Eww. Better to use C++ than AVL trees.
* Binary search trees
* AVL trees
* Red-black trees
Thanks for the pointer, it's neat. I really like how my approach turned out; the STLport red-black tree is well done. Backporting it to C only took a couple hours.