A Reconfiguration Algorithm for Power-Aware Parallel Applications