Added Apache license on Constraint.scala