slightly improve the efficiency of copy based insertion sort