Function that inputs a value for a particular matrix entry.
Example M.set_element(i,j,5.0) sets M(i,j) = 5.0 for Matrix object M.