2nd update to cachematrix.R file