Working code base for matrix multiplication