A conservative leapfrog time stepping method