adding square matrix multiplication