solve insertionsort1