An Economic Model of Friendship: Homophily, Minorities, and Segregation | Synapse