Cache Matrix Program