Added the CacheMatrix Functionality