Update cachematrix.R

Here is the updated cachematrix.R