Maintain median of a data stream | Trexquant Interview Question