reworked Treap