Insertion sort complete. Median calculation for quicksort complete. Insertion sort test written.