Modularity error calculation formula changed (corrected)

Results are matching with PSO based community detection paper
Karate club, dolphin network, american football club.
(written only for undirected graph and
karate club is undirected graph
dolphin and american football club are directed graph)