Selection sort is completed.