Create selection sort