Equation-oriented system: an efficient programming approach to solve multilinear and polynomial equations by the conjugate gradient algorithm