first commit of slection sort