Implicit Euler Method implementation