Sketch aggregation algorithm