Functions for caching inverse of the given matrix coded and documented.