Add matrix value sum method to matrix operations class