add function for Caching the Inverse of a Matrix

combine two function and then have some test code.