Using cons cells for small lists, automatically switching to AVL trees at a certain size
Significant refactoring of avl-tree.sjs: it now uses arrays for small lists, for extra speed