An algorithm for solving satisfiability problem based on the structural information of formulas