What Leads to Biases in Algorithms?