C++ program that completes the basic operations of the matrix