Cache Matrix assignment

Cache Matrix assignment with comments