Optimum commutative group codes