editing insertion sort