Fixed bug in avltree_take_max() which made the function always return NULL.
Added performance comparison with avltrees.