FindSquareRoot via binary search