C++ Matrix class (COMP2304)