implemetning the Runge Kutta Method