@Override
    /**
     * Remove element at given position
     */
    public void remove(int position) {
        if (position<0 || position>=this.size) // check for invalid position
            return;
        for (int i=position+1; i < this.size; i++) // shift everything after 1 space forward
            this.array[i-1] = this.array[i];
        this.size--; // adjust size
    }