Approximating a data stream for querying and estimation: algorithms and performance evaluation | Synapse