Updates to both 'makeCacheMatrix' and 'cacheSolve' functions