Updated cacheMatrix.R to the final version