Selection sort V1