Fix rowLength in matrixMuliplication. Prepare to test memory.