Update algorithm to use GSL multi-root finder (works).