Scheduling Algorithms for Saving Energy and Balancing