Implementation of Resource Discovery Mechanisms onto PeerSim