The solution of nonlinear parabolic and hyperbolic equations by the AGE algorithms