AN ALGORITHM FOR AN AUTOMATIC GENERAL POLYNOMIAL SOLVER.