Initial Implicit Euler implementation