Solve inverse of matrix and cache

Code added to body of functions that will solve the inverse of a square
matrix.  Following example for vector provided.