Fixed tree ranks - supposing that the ranks are sorted