functioning ode-solver for three dimensions in part a)