Update cachematrix.R to complete assignment