Add missing copyright headers
Extract percentile implementation
Only keep one IP in the Peer type
Add a comment explaining why Peer.IP is unambiguous