Tracking of communities in a dynamic network