A COMPARISON OF OPTICAL AND H I ROTATION CURVES IN M31