Update cachematrix.R

Assignment 2 answer