Speed up for new Rank with ties