A P2P Resource Discovery System Based on a Forest of Trees