Aggregation in Large-Scale Optimization