simplified code of PrimaryDecomposition

and removed duplicate method in Modules.gi