An Economy-driven Mapping Heuristic for Hierarchical Master-Slave Applications in Grid Systems