HW #2

functions to create a matrix object, compute its inverse, and save the
value in cache