public boolean insert(int value) {
        int i;
        for (i = 0; i < actualLength; i++)
            if (getOrderedArray()[i] > value)
                break;

        int j;
        for (j = actualLength; j > i; j--)
            if (j + 1 <= getOrderedArray().length)
                getOrderedArray()[j + 1] = getOrderedArray()[j];

        getOrderedArray()[j] = value;
        actualLength++;
        return true;
    }