initial commit selection sort