implemented build_max_heap, heapsort, heap_maximum, and heap_extract_max algorithms