TTreap: added Rank()