Added non-const wrapper for persistent treap