minheap to be continued