added isqrt method