cache the inverse of a matrix

A pair of functions that will cache the inverse of a matrix to prevent
time consuming calculations