Create Epidemic model algorithms in C++ and Matlab