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