change rbtree impl