Fix errors in the betweenness calculation.

Now we are obtaining correct results. I changed the predecessor data structure from a list to a set because there were duplicates. I also fixed a double casting problem which was giving incorrect dependencies.
Update pom.
Merge branch 'undirNetwork' into betweenness