Finish the interface between priority queue and different types of heaps.