finished implementations for PriorityQueueHEAP