minor update to insertion sort