Text this: Epidemic Thresholds in SIR and SIIR Models Applying an Algorithmic Method