Geodesics Minimize Length Locally