A Genetic Algorithm for Scheduling Grids with Hierarchical Architecture