replace the source code numerical recipes in logicle::solve and reimplement it with R_zeroin