Persistent/Immutable treap data structure for Go