Elementary Divisors of Integer Matrices (EDIM) for GAP
https://www.math.rwth-aachen.de/~Frank.Luebeck/EDIM/index.html