Treap implementation test and bench in ruby