get the median in a stream.