added the Correct Ranking Algorithm