Adapting the quantile summary for data streams