skeleton for runge kutta solver