Bidirectional pedestrian flow control