Update cachematrix.R

Completed- works!