Simple bittorrent encoder written on D