edited code for the Rosvall-Bergstrom community detection algorithm to make it more compliant with the programming guide