Template:Root-finding algorithm