preliminary implementations of quicksort, mergesort, insertion sort