Gets the two minimum-priority elements from Heap. Complexity:
logarithmic (amortized).
Do not use this predicate; it exists for compatibility with earlier
implementations of this library and the SICStus counterpart. It performs
a linear amount of work in the worst case that a following get_from_heap
has to re-do.