Update cachematrix.R

Adding code for project