Add quicksort, insertionsort, and heapsort implementation