Function that adds anoher matrix of any class.
Loads the "+=" operator. Matrix B is added to all matrix entries of A by A += B