Complex algebras on n-order polynomials and generalizations of trigonometry, oscillator model and Hamilton dynamics