Implementing a simple peer-to-peer (P2P) system with a centralized index (CI)