rough selection sort