simplified code in CommonHomalgTableForMAGMATools.Eliminate