Changed the approach by which PairingHeap performs pairing and combining.

Recursion is replaced with loop, so that pairing and combining can avoid being faced with stack overflow.