Update cachematrix.R

Initial attempted version