DEV: Refactor code for matrix and add new constructor
DEV: Replace std::vector<std::vector<double>> in constructor of simulation data by matrix<double>