An implementation of Heap Sort in C++ for a prior class