program that takes in numbers and sorts it using insertion sort algorithm