Rank iterator for Enumerable