heap
moved heapsort; added quicksort