structures: add an abstraction layer for binary heap

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>
examples: fix trailing spaces

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>