rbtree in progress