change main function in insertion sort