Flocks, herds, and schools: A quantitative theory of flocking