program to sort the elements in ascending order using selection sort