Rewrite of the main routines of AVL trees.
More testing infrastructure work.
Lots of bug fixing.