Update cachematrix.R

Initial commit with comments