Let's start from scratch, please.

The naïve algorithm for multiplying an n-row, k-column matrix A and a k-row, m-column matrix B is

Cr,c = ∑i=1..k Ar,i Bi,c
and the result is an n-row,...