Impmlemented leapfrog integration method.