added implementation of RK4 from Numerical Recipes