Papadimitriou's algorithm - implemented init SAT