treeMax() {
let maxValue = 0;
let traverse = (node) => {
if (!this.root) {
return null;
}
if (node.value > maxValue) {
maxValue = node.value;
}
if (node.left) traverse(node.left);
if (node.right) traverse(node.right);
};
traverse(this.root);
return maxValue;
}