K-Trek: A Peer-to-Peer Approach to Distribute Knowledge in Large Environments