Refactored RBNode to extend BSTNode.