CHANGED function prototype of heap_offer()
Merge ../../contrib/heap