R codes used in the CSC 591 Project 4: Virus Propogation