Implement a new approach for pivoting root that's more flexible and less tedious.