Effective Resources Allocation in a P2P Overlay to Execute Grid Workloads