The following modify the provided functions to take the inverse of the matrix.

The modifications were done similar to the 'cached mean' example provided.
Also, the functions have been commented as per the instructions.