Added new policy

Added new policy that spans certain hosts, avoids certain links and uses spanning tree.
Added spanning tree test and modified the style of some functions.