fixed time-dependent bug in ImplicitMidpoint. Added TimePendulum