Program for InverseCacheMatrix and Test Cases for InverseCache matrix