Median maintenance solution using a heap, compare performance to bst