selection sort: implement