Diversification and fairness in top-k ranking algorithms