make RST a friend class of BSTIterator