Two functions for caching the inverse of a matrix
A little bit of testing
Fixed wrong variable name
Add comments explaining what the code does