Reduce transform stream which calculates the median of streamed data.