Added mat_sum and mat_difference