filled out code for functions to calculate and return a cached version of the inverse of a square matrix, and commented the code