Programming assignment # 2. cache the inversion of a matrix.