Filled in the cacheSolve and makeCacheMatrix function templates.