Root of a given equation - Newton-Rapson method