Made changes to cachematrix.R