edit Cache Matrix functions