insertion sort algorithm for integers