added new intergrator class for better separation and new trapezoidal method