Using Euler and RK methods for solving ODE's