more work on insertion sort