Own Treap implementation.

For SPOJ ORDERSET.