getTreeHeight() {
    const current = this.root;

    if (!current) {
      return 0;
    }
    return (
      1 +
      Math.max(
        this.getNodeHeight(current._left),
        this._getNodeHeight(current._right)
      )
    );
  }
Calculates the height of the tree based on height
property.