adding heapsort and quicksort