C program for selection sort