Simplification: `AvlTree::deleteNode` now uses a switch statement to select which delete method to use.