Update cachematrix.R

This is the latest version of file.