Add consistencies tests for community algorithms
This MR adds tests for testing the correctness of the community detection algorithms.
This was useful for investigating #2 (closed) and assessing that after all the Haskell results were consistent with the C ones (and the Python ones, with a small proviso described in the issue).