Implemented naive matrix multiplication