Byzantine Agreement for Reputation Management in DHT-based Peer-to-Peer Networks