My code to compute inverse matrix and save result to cache

These two functions take a matrix and first look to see if its inverse
has been previously calculated. If it has it returns the result. If not
it uses the ginv function to calculate the inverse. The result is
cached for future use