Solves Algebraic Equations