Update cachematrix.R

Updating the code base