Once generics land in v1.18, we should update the treap implementation to make use of them.
Starting this tread to track discussion.