Mathematicians Discover Key to Crowd Movement