insertion sort, partial