Implements the Runge-Kutta order 2 algoritm: http://en.wikipedia.org/wiki/Runge-kutta
Part of MathLib, a diverse library of mathematical functions.
Miguel Negro, 2009.