Ziqi:Finish insert-sorting algorithm