dynamic array 'remove' method