Cache Matrix function changes