median in a stream