Updated compute_popular_topics

Edited by Lavanya Iyer