Added support for vector in RungeKutta4 method