L9.3 selection sort