A templated C++ binary heap implementation.