Parallel LAN/WAN heuristics for optimization