code: public static void heapSort(Quicksortable q, int size) {
          q = reverseQuicksortable(q);
          makeHeap(q, size);
          sortheap(q, size);
      }
docs: sorts the elements in q using the heapsort method
  
  @param q The quicksortable to heapsort.
  @param size The size of the quicksortable.