public boolean delete(int value) {
        int deleteIndex = search(value);
        if (deleteIndex == -1) {
            return false;
        }

        int i;
        for (i = deleteIndex; i < getOrderedArray().length; i++) {
            getOrderedArray()[i] = getOrderedArray()[i + 1];
            actualLength--;
        }
        return true;
    }