Finished insertion sort.