adding selection sort