Finished working on matrix multiplication with scalar