Learnt how to implement Treap
Clean up some stuff