private int lastChild(final int index) {
            int k = firstChild(index);
            int f = k + 2 - 1;
            if (k == index)
                    return index;
            else if (f <= lenghtd)
                    return f;
            else
                    return lenghtd;
    };