Added sort function prototypes, added Compare template parameter to MaxHeap, renamed Heap