The basic element sort of selection and insertion sort