Pairing heap, fix partial sorting for some methods