Modified elliptic_curve.sage to fix some mathmatical bugs on it