Complete cacheMatrix Script