add find median in a stream