Building fair algorithms