Wrote functions to manage cache and solve inverse

authored the code necessary to implement the cacheable matrix
capability — includes the calculation of the inverse of a square matrix.