Update cachematrix.R with completed assignment