Eliminated use of hashlist in getRank