impove c code style of insertion_sort