Eulers method for ODE