Exercise_10:completed selection sort