cachematrix.R modified

code entered to make the two functions work