Caches the Inverse of a matrix in R, to save calculation time