The leapfrog algorithm: background and demonstration