Updating code on both makeCacheMatrix() and cacheSolve().