Functions for creating and caching inverse of matrix created