Improve RBTree performance