fix treap delete bug and add comments for c.sed