Reworked Bridge Topology class and tests

There are failing tests that must be fixed
The problem is that the alg is not working for more then two device