adds selection sort