Updated compute_popular_topics

Changed by Lavanya Iyer