Functions for caching the inverse of a matrix

Assignment 2 completed