Update cachematrix.R

Assignment2 submission of R file