My doctoral thesis: simulating huge crowds of people