Collection of code to enable numerical Semi-Markov analysis using MATLAB