[math] add generic runge-kutta to math lib