Lena studied queueing theory, the mathematics of waiting in lines, to understand how groups of people flow through buildings.