Initial commit for the cache matrix function.