added Constraint and DistanceConstraint as well as a distance constraint demo