need to implement size function for treap