Insertion sort in C