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