Writing two functions to cache the inverse of a matrix.

Main script