Topological methods of preference and judgment aggregation