Added modularity objective function