Implements a Priority Queue with a pairing heap.