cachematrix: implemented caching and retrieving
cachematrix: added a simple testing function with two examples