Either container for simulating tree structure with a map