insertion sort on list