Added pointer version of treap