small alteration to cacheMatrix.R