Simple selection sort