Update cachematrix.R

Assignment 2 submission