Create Cache Matrix