Updated the comments in matrix.cpp