BSTNode class implementation