leap frog and implicit euler implemented