Move result type of integrator to template parameters of classes
Context
Current API of integrators has result types in template parameter of functions, but they are not convenient to specify.
Task
Move result type of integrator to template parameters of classes.