added compute discrete geodesics

added compute discrete geodesics