- Optimized the insertion sort