Create median-heaps