Dynamic Allocation of Virtual Resources Based on Genetic Algorithm in the Cloud