Completed assignemnt with functions to cache and invert a matrix. Updated with comments