Reimplementation of Euler and Heun, with test functions.