Quick insertion sort