Oscillatory Dynamics of Smallpox and the Impact of Vaccination