swarm implementation for bittorrent