Function that adds a constant integer to matrix.
Loads the "+=" operator. Integer a is added to all matrix entries of A by A += a