Update selection sort