Updating Heap Sort Scratch Patch