Update cachematrix.R

Assignment for week2