Update cachematrix.R

updated with demo