int divideHelper(int a, int b) {

        int base = 1;
        while (a <= b << 1 && b << 1 < 0) {
            b <<= 1;
            base <<= 1;
        }

        int result = 0;
        while (base != 0) {
            if (a <= b) {
                a = a - b;
                result += base;
            }
            base >>>= 1;
            b >>= 1;
        }
        return result;

    }