SelectionSort in C