Made a fix in overloaded output stream operator for printing the matrix