I\'ve made a priority queue implementation that uses heap, but it works somewhat but I\'ve encountered a problem where if I dequeue the priority queue it doesn\'t heapify co