finish insert_sort