Networks, hierarchies, and markets: Aggregating collective problem solving in social systems