Optimize AVL leaf array