simple dpll sat solver written in prolog