Update matrix_operations.hpp