Create topology_V2.cpp

Upgraded version of topology_V1.cpp file which also generates the path lengths of various JellyFish topologies.