Added boilerplate code for treaps