Corrected Cache Matrix data type and added Comments