An implementation of a pairing heap.