private int firstChild(final int index) {
            int k = index * 2 + 1;
            if (k > lenghtd) {
                    return index;
            } else {
                    return k;
            }
    };