Quadrature interview question

Code up a queue implementation of a streaming median estimator.