fix some bugs in modularity_louvain_und_sign but it is still discrepant from matlab, maybe some more hidden bugs