class structure for computing ID with different (deterministic and stochastic) solvers