Switched from colwise to rowwise omega in sa_emin