Added node rank to TTreap