Tree implementation including an algorithm to determine the time to infect the whole tree with a virus.