Novel Control Algorithms for Hierarchical Control of Power Systems