finish insertion sort 3rd implementation