Invert matrix and cache it

Matrix inversion is usually a costly computation and there may be some
benefit to caching the inverse of a matrix rather than computing it
repeatedly.
This assignment is to write a pair of functions that cache the inverse
of a matrix.