modified the insert and remove operation of RB_tree