5.1 Heap ADT

The ADT of a heap only requires very few interfaces, much like those of a stack or a queue.

Special care should be taken so that if a heap only has n items, then it should only use sizoef(int) n bytes, starting from the location pointed to by pStorage. This involves shifting all serial numbers by one so that the root has a serial number of 0 (instead of 1).