cacheMatrix program 2 version 2