Group function added in matrix.js