finish insertion_sort