Cache Matrix assignment done

Cache matrix implemented.