Selection sort and insertion sort