Update Code to CacheMatrix