Creates an instance of BinaryTreeNode.
Gets the color of the node (used in Red-Black trees).
The node's color.
Sets the color of the node.
The new color.
Gets the count of nodes in the subtree rooted at this node (used in order-statistic trees).
The subtree node count.
Sets the count of nodes in the subtree.
The new count.
Gets the position of the node relative to its parent.
The family position (e.g., 'ROOT', 'LEFT', 'RIGHT').
Gets the height of the node (used in self-balancing trees).
The height.
Sets the height of the node.
The new height.
Gets the left child of the node.
The left child.
Sets the left child of the node and updates its parent reference.
The node to set as the left child.
Gets the right child of the node.
The right child.
Sets the right child of the node and updates its parent reference.
The node to set as the right child.
The type of the key.