Adding quicksort and heapsort implementations