Gravar-mail: Epidemic Thresholds in SIR and SIIR Models Applying an Algorithmic Method