horzcat and vertcat for GIMat and Ga