Peer-to-Peer Systems for Discovering Resources in a Dynamic Grid