Community Detection Using Efficient Modularity Optimization Method: LabelMod with Single and Multi-Layer Graphs