deque create_map_and_nodes