Update ranking algorithm