added unsatisfiability check to unit propagation code