finish rb_tree