R module for efficient computation of inverse of matrix by caching