Reworking insertionsort1 problem