RecTOR: a New and Efficient Method for Dynamic Network Reconfiguration