[TextEditor] AvlTree is now internal - it's not ready to be in the
public API.
[TextEditor] Fixed/tested avl implementation.