Optimized monthly code

Optimized monthly code by reducing the number of passes needed to
compute prevalence, persistence, and avg rtt from 2 to 1