CacheMatrix.R modified by Heverth Osorio on July 26