This package implements a simple min-max-heap in plain C99 (maybe older language versions can be used after a few tweaks).
The implementation aims to correctness and simplicity rather than pure speed. See other files or the code for more informations.