implement the Davis-Putnam algorithm and use it to solve a