added median computation to statistics aggregation in streaming_extractor