Edited CacheMatrix