Simple solver for Constraint Satisfaction Problems