finished repair heap and heapify, non working heapsort method