initial version of a pairing heap