starting to implement the insertion sort algorithm