basic Treap idea