Implemented median maintenance algorithm and two-sum variant