Edited cacheMatrix