reimplementation of MatrixGeneric binary operators as friend functions