wrote the program that was requested.

Matrix inverse cache functions.