Dynamic Topology Organization and Maintenance Algorithms for Autonomous UAV Swarms