Implementation of Modularity Clustering for Symmetric Graphs/Matrices