Performance And Power Optimization For Multi-Core Systems Using Multi-Level Scaling