Numberical Integrator code: RK4 and Leapfrog