adding matrix values

adding matrix values