Distributed Learning for UAV Swarms