Kinematic Fits with non-linear Constraints