Simple selection sort compelet