Parametrized ContainerStructure#remove method

used in order to parametrically change whether we want to perform a BFS
or a DFS traversal. IF :is_dfs is set to true - when creating a
ContainerStructure instance - we can apply a DFS traversal. Otherwise we
will apply a BFS traversal.