Version 1.0 of the functions to cache the inverse.