Abstarct Rungekutta4 function for dlang.