added some debug output, used blas vector to quickly compute ininitial modularity