C implementation of a heap using an array.