use bisearch method finding root.