dichotomous algorithm to approximate the square root of a number.