add maxDepth, __deleteTree, deleteTree