fixed null element in insertionsort