Basic Newton's square root from the book.