added comments to cacheSolve function