Changes to cachematrix.R