Created Cache Matrix data type