Update cachematrix.R

Initial implementation