first implemetation of PBC to SAT encoding