square roots by newton's method