MinMax Sampling: A Near-optimal Global Summary for Aggregation in the Wide Area