finish insertion sort