SQRT problem solved with binary search