updated hier dawid skene with constraints and elementwise ops