Cousera R prog - hw2 cached matrix.