modified rbtree
modified rbtree