Changing the network cpp code

Now this includes a version of the Erdos network. However, this code
need to be checked to make sure it matches Jono’s waxman and keeling
codes. To be done after package is up and running