On Algorithms, Fairness, and Incentives