sqrt with binary search approach