TTreap: added delete-while-traversing in demo1