Final makeCacheMatrix and cacheSolve functions.