Generalized CHR Machines