Moved the algorithm include to heap.h