finish insert-sort