square_root using the newton method